import React from "react"
import {Route,} from 'react-router-dom'
import MapSource from "../../../pages/toolPages/MapSource"
import Home from '../../../pages/Home'
import Publish from '../../../pages/Publish'
import User from '../../../pages/User'
import Login from '../../../pages/Login'
//搜索
import Search from '../../../pages/Search'
//个人认证
import PersonalCertificate from '../../../pages/PersonalCertificate'
//企业认证
import EnterpriseCertificate from '../../../pages/EnterpriseCertificate'
//发布求购
import BuyPublish from '../../../pages/BuyPublish'
//发布供应
import SupplyPublish from "../../../pages/SupplyPublish"
//开通会员
import Pay from "../../../pages/Pay"
//认证成功
import Result from '../../../pages/toolPages/Result'
//产品详情（供）
import BuyDetail from "../../../pages/BuyDetial"
//产品详情（求）
import SupplyDetail from "../../../pages/SupplyDetail"
//供求列表
import ProductList from "../../../pages/ProductList"
//问题反馈
import Feedback from "../../../pages/Feedback"
//企业主页
import CompanyIndex from "../../../pages/CompanyIndex"
//我的收藏
import RatingList from "../../../pages/RatingList"
//签订合同
import Signature from "../../../pages/Signature"
export default class RouterView extends React.Component{
        render () {
                return <div className='router-view'>
                        <Route path='/index/home' component={Home}/>
                        <Route path='/index/publish' component={Publish}/>
                        <Route path='/index/user' component={User}/>
                        <Route path='/home/login' component={Login}/>
                        <Route path='/home/map' component={MapSource}/>
                        <Route path='/home/personalCertificate' component={PersonalCertificate}/>
                        <Route path='/home/enterpriseCertificate' component={EnterpriseCertificate}/>
                        <Route path='/home/search' component={Search}/>
                        <Route path='/home/buyPublish' component={BuyPublish}/>
                        <Route path='/home/supplyPublish' component={SupplyPublish}/>
                        <Route path='/home/pay' component={Pay}/>
                        <Route path='/home/result' component={Result}/>
                        <Route path='/home/buyDetail/:id' component={BuyDetail}/>
                        <Route path='/home/supplyDetail/:id' component={SupplyDetail}/>
                        <Route path='/index/sad' component={ProductList}/>
                        <Route path='/home/feedback' component={Feedback}/>
                        <Route path='/home/companyIndex/:memberId' component={CompanyIndex}/>
                        <Route path='/home/ratingList' component={RatingList}/>
                        <Route path='/home/signature' component={Signature}/>
                        {/*<Redirect to='/index/home'/>*/}
                </div>
        }
}
